<?php for($i=0;$i<$week;$i++) { ?>
<div class="col-sm-2 date-item empty"></div>
<?php } ?>

{loop $calendar $k $c}
<div class="col-sm-2 date-item {if is_array($c)}select{/if}" date="{$k}" taskid="{php echo is_array($c)? intval($c['taskid']): ''}">
    <div class="date">{php echo date('d', strtotime($k))}</div>
    <div class="link" {if empty($c)}style="display:none"{/if} style="display:none">
    <a href="{php echo webUrl('seckill/task/edit',array('id'=>(is_array($c)?$c['taskid']:'')))}" target="_blank" data-href="{php echo webUrl('seckill/task/edit')}" class="btn-edit" title="编辑秒杀">
        <i class="icon icon-edit"></i></a>

    <a href="{php echo webUrl('seckill/goods',array('taskid'=>(is_array($c)?$c['taskid']:'')))}" target="_blank" data-href="{php echo webUrl('seckill/goods')}" class="btn-goods"  title="查看商品">
        <i class="icon icon-goods"></i></a>
    <a href="javascript:;" class="btn-delete" title="取消"><i class="icon icon-delete"></i></a>
</div>
<a href="javascript:;" class="btn btn-set  {if !empty($c)}btn-set-has{/if}">
    {if empty($c)}
    选择
    {else}
    [{$c['taskid']}]{$c['title']}
    {/if}
</a></div>
{/loop}
